package com.jsle.financial.domain;

import java.io.Serializable;
import java.util.Date;
/**
 * 用户实体
 * @author wisdying
 * @date 2012-10-26
 */
public class User implements Serializable {

	private static final long serialVersionUID = 83409730608839512L;
	/**Id自增*/
	private Integer id;
	/**账号*/
	private String loginName;
	/**密码*/
	private String loginPassword;
	/**姓名*/
	private String cNName;
	/**职位名称*/
	private String positionName;
	/**职位代码*/
	private String positionCode;
	/**创建时间*/
	private Date createTime;
	/**更新时间*/
	private Date updateTime;
	/**是否激活*/
	private int isActive=1;
	
	private int userType=1;//用户类型，默认为0表示普通用户，1为管理员
	
	private String companyName;//隶属公司名称
	private String companyCode;//隶属公司代码
	 
	
	public User(Integer id) {
		this.id = id;
	}
	public User(String loginName) {
		this.loginName = loginName;
	}
	public User(String loginName, String loginPassword,
			String cNName, String positionName, Date createTime,
			Date updateTime, int isActive) {
		this.loginName = loginName;
		this.loginPassword = loginPassword;
		this.cNName = cNName;
		this.positionName = positionName;
		this.createTime = createTime;
		this.updateTime = updateTime;
		this.isActive = isActive;
	}
	public User(Integer id, String loginName, String loginPassword,
			String cNName, String positionName, Date createTime,
			Date updateTime, int isActive) {
		this.id = id;
		this.loginName = loginName;
		this.loginPassword = loginPassword;
		this.cNName = cNName;
		this.positionName = positionName;
		this.createTime = createTime;
		this.updateTime = updateTime;
		this.isActive = isActive;
	}
	public User() {
		// TODO Auto-generated constructor stub
	}
	public Integer getId() {
		return id;
	}
	public void setId(Integer id) {
		this.id = id;
	}
	public String getLoginName() {
		return loginName;
	}
	public void setLoginName(String loginName) {
		this.loginName = loginName;
	}
	public String getLoginPassword() {
		return loginPassword;
	}
	public void setLoginPassword(String loginPassword) {
		this.loginPassword = loginPassword;
	}
	public String getcNName() {
		return cNName;
	}
	public void setcNName(String cNName) {
		this.cNName = cNName;
	}
	public String getPositionName() {
		return positionName;
	}
	public void setPositionName(String positionName) {
		this.positionName = positionName;
	}
	public Date getCreateTime() {
		return createTime;
	}
	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}
	public Date getUpdateTime() {
		return updateTime;
	}
	public void setUpdateTime(Date updateTime) {
		this.updateTime = updateTime;
	}
	public int getIsActive() {
		return isActive;
	}
	public void setIsActive(int isActive) {
		this.isActive = isActive;
	}
	/**
	 * @return the userType
	 */
	public int getUserType() {
		return userType;
	}
	/**
	 * @param userType the userType to set
	 */
	public void setUserType(int userType) {
		this.userType = userType;
	}
	/**
	 * @return the companyName
	 */
	public String getCompanyName() {
		return companyName;
	}
	/**
	 * @param companyName the companyName to set
	 */
	public void setCompanyName(String companyName) {
		this.companyName = companyName;
	}
	/**
	 * @return the compangyCode
	 */
	public String getCompanyCode() {
		return companyCode;
	}
	/**
	 * @param compangyCode the compangyCode to set
	 */
	public void setCompanyCode(String companyCode) {
		this.companyCode = companyCode;
	}
	/**
	 * @return the positionCode
	 */
	public String getPositionCode() {
		return positionCode;
	}
	/**
	 * @param positionCode the positionCode to set
	 */
	public void setPositionCode(String positionCode) {
		this.positionCode = positionCode;
	}
	
	
}
